<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: HKemmm
  Date: 2021/3/29
  Time: 17:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>el练习</title>
</head>
<body>
此页面使el练习<br>
<%
    List list = new ArrayList();

    list.add(10);
    list.add("小明");
    list.add(15);
    list.add("小红");
    list.add(12);

    //存储带request缓存中
    request.setAttribute("stuName",list);
%>

<c:forEach items="${requestScope.stuName}" var="name">
    &nbsp;&nbsp;&nbsp;&nbsp;${name}
</c:forEach>
</body>
</html>
